90311: xfi:fact-explicit-dimensions
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Wojciech Diakowski |
|
wojtekd@fingo.pl | 07-06-2012 at 00:00:00 |
References
Test Case Variations
V-01
Test correct location dimension for Mount Kilimanjaro
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:Peak[./text() eq 'Mount Kilimanjaro'] )
(against file V01)
Outputs
-
Result test:
$result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:Location')
V-02
Test default location dimension for Vinson Massif
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:Peak[./text() eq 'Vinson Massif'] )
(against file V02)
Outputs
-
Result test:
$result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:Location')
V-03
Dimension can be located in either segment or scenario, for this variation appears in the segment.
Documentation
Inputs
- schema: bi-locational-dim-concepts.xsd
- linkbase: bi-locational-dim-definition.xml
- instance: bi-locational-seg-explicit-instance.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:PriItem1[1])
(against file V03)
Outputs
-
Result test:
$result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:ExplDim1')
V-04
Dimension can be located in either segment or scenario but for this variation appears in the scenario instead of segment.
Documentation
Inputs
- schema: bi-locational-dim-concepts.xsd
- linkbase: bi-locational-dim-definition.xml
- instance: bi-locational-scen-explicit-instance.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:PriItem1[1])
(against file V04)
Outputs
-
Result test:
$result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:ExplDim1')
V-05
Test multiple dimensions for fact.
Documentation
Inputs
- schema: multipleDims-concepts.xsd
- linkbase: multipleDims-definition.xml
- instance: multipleDims-instance.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:PriItem1[1])
(against file V05)
Outputs
-
Result test:
$result instance of xs:QName* and count( $result ) eq 3 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim1') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim2') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim3') ) ge 1
V-06
Test multiple dimensions for fact with default dimension.
Documentation
Inputs
- schema: multipleDims-concepts.xsd
- linkbase: multipleDims-definition.xml
- instance: multipleDims-instance.xml (DTS Discovery starting point) (ID=V06)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:PriItem1[2])
(against file V06)
Outputs
-
Result test:
$result instance of xs:QName* and count( $result ) eq 3 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim1') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim2') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim3') ) ge 1
V-07
Test no dimensions for fact.
Documentation
Inputs
- schema: simple-concepts.xsd
- instance: simple-instance.xml (DTS Discovery starting point) (ID=V07)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:c1[2])
(against file V07)
Outputs
-
Result test:
empty( $result )
V-08
Wrong node to function
Documentation
Inputs
- schema: simple-concepts.xsd
- instance: simple-instance.xml (DTS Discovery starting point) (ID=V08)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl )
(against file V08)
Outputs
- Error code: xqt-err:XPTY0004
V-09
A sequence of items as argument
Documentation
Inputs
- schema: simple-concepts.xsd
- instance: simple-instance.xml (DTS Discovery starting point) (ID=V09)
-
Function Call:
xfi:fact-explicit-dimensions( /xbrli:xbrl/t:c1 )
(against file V09)
Outputs
- Error code: xqt-err:XPTY0004
Revisions
Name | On | Details |
---|---|---|
Wojciech Diakowski | 07-06-2012 at 00:00:00 |
|